package guardedsuspension;


import java.util.concurrent.Callable;

/**
 * @Author: linKe
 * @Date: 2022/1/15 10:51
 * @FileName: GuardedAction
 * @version: 1.0
 * @Description: 抽象了目标动作，并关联了目标动作所需的保护条件
 */
public abstract class GuardedAction<T> implements Callable<T> {
    protected final Predicacate predicacate;

    public GuardedAction(Predicacate predicacate) {
        this.predicacate = predicacate;
    }
}
